package com.asj.house.client;

import com.asj.house.config.feign.HouseRoomIntermediaryFeignConfig;
import com.asj.house.returns.RespEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "houseRoomIntermediaryClient", url = "${manage.url}", configuration = HouseRoomIntermediaryFeignConfig.class)
public interface HouseRoomIntermediaryClient {

    /**
     *房源分配中介复选框格式
     * @param roomId
     * @return
     */
    @GetMapping("house-room-intermediary/checkBox")
    RespEntity listCheckBox(@RequestParam("roomId") Integer roomId);

    /**
     * 分配房源
     * @param ids
     * @param roomId
     * @return
     */
    @PutMapping("house-room-intermediary/update")
    RespEntity updateIntermediary(@RequestParam("ids") String ids,
                                  @RequestParam("roomId") Integer roomId);

    /**
     * 中介房源信息树形展示
     * @return
     */
    @GetMapping("house-room-intermediary/tree")
    RespEntity listTree();
}
